package com.scs.application.modules.price.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "调价明细表")
@TableName("price_adjustment_item")
public class AdjustmentItem extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "外键",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String adjustId;

    @EntityFieldAnnotation(
            text = "耗材ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrId;

    @EntityFieldAnnotation(
            text = "品名",
            length = "255",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrName;

    @EntityFieldAnnotation(
            text = "品规",
            length = "255",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrSpec;

    @EntityFieldAnnotation(
            text = "供应商ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String supplierId;

    @EntityFieldAnnotation(
            text = "供应商名称",
            length = "100",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String supplierName;

    @EntityFieldAnnotation(
            text = "是否更新库存价格",
            length = "",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean flagStock;

    @EntityFieldAnnotation(
            text = "按耗材调整",
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Boolean flagMatr;

    @EntityFieldAnnotation(
            text = "调价前单品单价",
            length = "",
            not_null = false,
            default_value = "",
            comment = "单品单价"
    )
    private Double skuPriceBefore;

    @EntityFieldAnnotation(
            text = "调价后单品单价",
            length = "",
            not_null = false,
            default_value = "",
            comment = "单品单价"
    )
    private Double skuPriceAfter;

    @EntityFieldAnnotation(
            text = "调价前hrp耗材编码",
            length = "30",
            not_null = false,
            default_value = "",
            comment = "hrp耗材编码"
    )
    private String hrpCodeBefore;

    @EntityFieldAnnotation(
            text = "调价后hrp耗材编码",
            length = "30",
            not_null = false,
            default_value = "",
            comment = "hrp耗材编码"
    )
    private String hrpCodeAfter;

    @EntityFieldAnnotation(
            text = "调价前HIS编码",
            length = "30",
            not_null = false,
            default_value = "",
            comment = "HIS编码"
    )
    private String hisCodeBefore;

    @EntityFieldAnnotation(
            text = "调价后HIS编码",
            length = "30",
            not_null = false,
            default_value = "",
            comment = "HIS编码"
    )
    private String hisCodeAfter;

    @EntityFieldAnnotation(
            text = "调价前HIS价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = "HIS价格"
    )
    private Double hisPriceBefore;

    @EntityFieldAnnotation(
            text = "调价后HIS价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = "HIS价格"
    )
    private Double hisPriceAfter;

    @EntityFieldAnnotation(
            text = "单品单价调价价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double skuPriceChange;

    @EntityFieldAnnotation(
            text = "单品单价调价价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double hisPriceChange;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "一物一码管理标志",
            length = "",
            not_null = false,
            default_value = "0",
            comment = "一物一码"
    )
    private Boolean flagOmoc;



    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

    @EntityFieldAnnotation(
            text = "耗材型号",
            length = "100",
            not_null = false,
            default_value = "",
            comment = "耗材型号"
    )
    private String matrModel;

}
